package com.deep.spring.v3;

public class ResultVo {
    private boolean flag;


    private String errCode;
    private String errMsg;

    public String getErrCode() {
        return errCode;
    }

    public void setErrCode(String errCode) {
        this.errCode = errCode;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    public ResultVo(boolean flag) {
        this.flag = flag;
    }

    public ResultVo(boolean flag, String errCode, String errMsg) {
        this.flag = flag;
        this.errCode = errCode;
        this.errMsg = errMsg;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        return "ResultVo{" +
                "flag=" + flag +
                '}';
    }
}
